﻿package net.jmp0.toast.entities.obstacles 
{
	import net.jmp0.toast.entities.effects.SmallExplosion;
	import net.jmp0.toast.entities.obstacles.Obstacle;
	
	/**
	 * A standard wall which blocks the playerobject
	 * the interesting parts are implemented in the class "Obstacle"
	 * @author Thodd
	 */
	public class StandardWall extends Obstacle
	{
		[Embed(source = '../../res/standardWall.png')] private var imgWall:Class;
			
		public function StandardWall(x:int, y:int)
		{	
			super(x, y);
			
			//Standard setup stuff
			this.sprite = FP.getSprite(imgWall, 20, 20, false, false, 0, 0, true);
			this.randomizeAnimation();	
		}
		
		override public function destroy():void {
			new SmallExplosion(x, y);
			super.destroy();
		}
		
	}

}